﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WoW_Downloader.Controller;

namespace WoW_Downloader
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class Downloader : Window
    {
        DownloadController con;

        public Downloader()
        {
            InitializeComponent();
            con = new DownloadController();

            DataContext = con.ViewData;
        }

        private void tbc_download_Click(object sender, RoutedEventArgs e)
        {
            con.DownloadTbc();
        }

        private void wotlk_download_Click(object sender, RoutedEventArgs e)
        {
            con.DownloadWotlk();
        }

        private void tbc_stopDownload_Click(object sender, RoutedEventArgs e)
        {
            con.StopTbcDownload();
        }

        private void chooseFolder_Click(object sender, RoutedEventArgs e)
        {
            con.chooseFolder();
        }

        private void Window_Closed(object sender, EventArgs e)
        {
            con.CloseWindow();
        }
    }
}